import _http from '@/utils/http'

export default {
    exportAll(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/export/all',
            apiName: '导出-所有',
        }, params, loading, headers)
    },
    shopSearch(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/search',
            apiName: '商铺查询-分页',
        }, params, loading, headers)
    },
    exportAppoint(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/export/appoint',
            apiName: '导出-指定',
        }, params, loading, headers)
    },
    shopStateBatchUpdate(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/state/batchUpdate',
            apiName: '批量修改商铺状态',
        }, params, loading, headers)
    },
    registerShop(params, loading, headers) {
        return _http('post', {
            url: '/ums/register/web/shop',
            apiName: '商铺创建',
        }, params, loading, headers)
    },
    shopDetail(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/detail',
            apiName: '商铺详情',
        }, params, loading, headers)
    },
    shopModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/modify',
            apiName: '商铺修改',
        }, params, loading, headers)
    },
    goodsInfoTree(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/list/tree',
            apiName: '商品-类别、分类、品牌树状关系结构',
        }, params, loading, headers)
    },
    goodsInfoSearch(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/search',
            apiName: '商品查询-分页',
        }, params, loading, headers)
    },
    tuijianuser(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/tuijianuser/choose-list',
            apiName: '推荐人筛选框',
        }, params, loading, headers)
    },
}
